import { UserInfo } from './User'

type GameRank = {
  times: number
  score: number
}

type IdiomGame = {
  id: number
  idiom: string
  results: string
  level: number
  index: number
  answer: string
  timeout: number
  limit: number
  now: number
}

type TbDataIdiom = {
  id: number
  word: string
  pinyin: string
  explanation: string
  derivation: string
  inserted: number
}

type TbGameInfo = {
  id: number
  uid: number
  gametype: string
  times: number
  score: number
  lastupdate: number
  user: UserInfo
  gameRank: GameRank
}

type SnakeBody = {
  x: number
  y: number
  width: number
  height: number
}

export type { IdiomGame as IdiomGame, TbDataIdiom as TbDataIdiom, TbGameInfo as TbGameInfo, GameRank as GameRank, SnakeBody as SnakeBody }
